refactor(bump): cleanup related to update_version_file#1594
Merged
Lee-W merged 3 commits intocommitizen-tools:v4-9-2from Nov 8, 2025
Merged
refactor(bump): cleanup related to update_version_file#1594Lee-W merged 3 commits intocommitizen-tools:v4-9-2from
Lee-W merged 3 commits intocommitizen-tools:v4-9-2from
Conversation
9e1cee1 to
b1ec6b2
Compare
bearomorphism
commented
Sep 11, 2025
b1ec6b2 to
4760b73
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v4-9-2 #1594 +/- ##
=========================================
Coverage ? 98.71%
=========================================
Files ? 60
Lines ? 2654
Branches ? 0
=========================================
Hits ? 2620
Misses ? 34
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4760b73 to
f27f093
Compare
82fc109 to
10d5b2f
Compare
bearomorphism
commented
Sep 11, 2025
commitizen/bump.py
Outdated
| file.write(version_file) | ||
| file.write(bumped_version_file_content) | ||
| updated.append(path) | ||
| return updated |
Collaborator
Author
There was a problem hiding this comment.
btw the return value is not covered in the unit tests for this function. I'm not sure if it's covered anywhere else.
10d5b2f to
ee86b9c
Compare
bearomorphism
commented
Sep 12, 2025
7e0a521 to
6ede88e
Compare
bearomorphism
commented
Sep 12, 2025
6ede88e to
a5aa553
Compare
Lee-W
approved these changes
Nov 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Try to address confusing variable names and function names, also reduced the number of function parameters for better readability.
Relate #1580
Better test coverage for
update_version_in_file:check_consistency=TrueencodingvaluesChecklist
Code Changes
poetry alllocally to ensure this change passes linter check and testsDocumentation Changes
poetry doclocally to ensure the documentation pages renders correctlyExpected Behavior
Steps to Test This Pull Request
Additional Context